All Functions of Week 3

read_excel

{readxl}

Read an Excel file

slice_sample

{dplyr}

Randomly selects rows from a data frame or tibble.

geom_point

{GGPLOT2}

Generates a scatter plot

ggplot

{GGPLOT2}

Create a ggplot graph

select

{dplyr}

Select columns from a tibble/data frame

rename

{dplyr}

Renames columns in a data frame or tibble.

element_line

{GGPLOT2}

Customise line appearance

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

element_text

{GGPLOT2}

Customise text in GGPLOT2

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

theme

{GGPLOT2}

Set theme for GGPLOT2

filter

{dplyr}

Filter out rows of a data frame according to logical vector

nrow

{base}

Get number of rows of a data frame

ungroup

{dplyr}

Resolve grouping created with “group_by”

group_by

{dplyr}

Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise

is.na

{base}

Check if a value is NA/elements of vector are NA

c

{base}

Combine values/vectors into a vector

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

ggsave

{ggplot2}

Saves the last ggplot or a specified ggplot object to a file

setwd

{base}

Set Working Directory

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

library

{base}

Load an R package

set.seed

{base}

Initialise a pseudorandom number generator.

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

scale_y_continuous

{GGPLOT2}

Customise continuous y axis

min

{base}

Get minimum of a vector

The end!